﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace PersonaLibrary.View
{
	public class View : UserControl, IView 
	{
		public event EventHandler Closed;

		public void Close()
		{
			CancelEventArgs cancelEventArgs = new CancelEventArgs();
			Closing(this, cancelEventArgs);

			if (!cancelEventArgs.Cancel)
				Closed(this, new EventArgs());
		}

		public event CancelEventHandler Closing;
	}
}
